package org.example;

import java.util.logging.Filter;
import java.util.logging.LogRecord;

/**
 * 日志过滤器
 */
public class MyLogFilter implements Filter {

    @Override
    public boolean isLoggable(LogRecord record) {
        if(record.getMessage().contains("暴力")){
            return  false;
        }
        return true;
    }
}
